import Login from '../login'
import Todo from '../todo/todo.vue'

export default [
  {
    path: '/login',
    component: Login,
    children: [

      {
        path: '/login/l2', // 不带 或者 全部路径
        props: (route) => ({id2: route.query.a}),
        component: Todo,
      }
    ]
  },
  {
    path: '/app',
    component: Todo
  },
  {
    path: '/',
    redirect: '/login'
  }
]
